package com.db.williamchart.plugin;

import com.db.williamchart.Labels;
import com.db.williamchart.data.Label;
import ohos.agp.render.Canvas;
import ohos.agp.render.Paint;

import java.util.List;

public class AxisLabels implements Labels {
    @Override
    public void draw(Canvas canvas, Paint paint, List<Label> xLable) {
        for (Label label : xLable){
            canvas.drawText(paint,label.getLabel(),label.getScreenPositionX(),label.getScreenPositionY());
        }
    }
}
